package br.ufpb.di.ppgi.persistencia;

import javax.persistence.PersistenceException;

public class PersistenceExceptionHandler {
	public PersistenceException handle(Exception ex) {
		return ex instanceof 
			PersistenceException ? (PersistenceException)ex : new PersistenceException(ex);
	}
}
